<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:72:"D:\phpStudy\WWW\qd\public/../application/index\view\order\orderlist.html";i:1510217143;s:44:"../application/index/view/shared/header.html";i:1511488897;s:49:"../application/index/view/shared/welcomeword.html";i:1510018215;s:42:"../application/index/view/shared/foot.html";i:1510210451;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
    <link rel="stylesheet" href="__STATIC__/css/base.css">
    <link rel="stylesheet" href="__STATIC__/css/orderlist.css">
    <link rel="stylesheet" href="__STATIC__/css/personal_center.css">
    <script src="__STATIC__/js/jquery-1.11.1.min.js"></script>
    <script src="__STATIC__/js/base.js" type="text/javascript"></script>
    <script src="__STATIC__/js/layer/layer.js" type="text/javascript"></script>
</head>
<body>
<!--头部开始-->
<script src="__STATIC__/js/jquery-1.11.1.min.js"></script>
<script src="__STATIC__/js/layer/layer.js" type="text/javascript"></script>
<!--顶部开始-->
<div id="header">
    <div class="header-bar">
		<div class="w1200">
			<div class="headerbarL">
				<a href="/index.html">企业宝首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/projectInfo.html">发布服务</a>
			</div>
			<div class="headerbarR">
				<ul>
					<?php if(empty(\think\Session::get('Login_userId'))): ?>
					<li><a href="/login.html">登录</a></li>
					<li><a href="/register.html">免费注册</a></li>
					<?php endif; if(!empty(\think\Session::get('Login_userId'))): ?>
					<li>
						<a href="/info.html">
							<?php if(\think\Session::get('Login_userName') == ''): ?>
						    <?php echo \think\Session::get('Login_font'); ?>....<?php echo \think\Session::get('Login_back'); endif; if(\think\Session::get('Login_userName') != ''): ?>
							<?php echo \think\Session::get('Login_userName'); endif; ?>
					    </a>
					</li>
					<li><a    id="goout" style="cursor: pointer">退出</a></li>
					<?php endif; ?>
					<li><a href="/lists.html">我的订单</a></li>
					<li><a href="#">服务商登录</a></li>
					<li><a href="/personal.html">服务商服务</a></li>
					<li>
						<a href="javascript:;">移动应用</a><span></span>
						<div class="mobile-application">
							<img src="__STATIC__/images/code.png"/>
							<p>企业宝APP</p>
						</div>
					</li>
				</ul>
			</div>
		</div>
    </div>
    <div class="logo-safe w1200 clearfix">
		<a class="logo" href="/index.html"><img src="__STATIC__/images/logo.png" ></a>
		<!--资质保障开始-->
		<ul class="safeguard">
			<li><span></span>资质认证</li>
			<li><span></span>信息保密</li>
			<li><span></span>价格透明</li>
			<li><span></span>售后无忧</li>
		</ul>
		<!--资质保障结束-->
		
	</div>
	<!--导航和电话部分开始-->
		<div class="nav-call w1200 clearfix">
			<!--导航-->
			<ul class="nav" id="header_nav">
				<li>
					<a target="_blank" href="/all" class="current">服务分类</a>
					<!--服务分类导航-->
					<ul class="classify-nav">
						<?php if(is_array($sn) || $sn instanceof \think\Collection || $sn instanceof \think\Paginator): $i = 0; $__LIST__ = $sn;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<li>
							<p><?php echo $vo['categoryName']; ?></p>
							<?php if(!empty($vo['er'])): ?>
							<div class="item">

								<div class="item-content">
									<?php foreach($vo['er'] as $vo2): ?>
									<div class="item-content-wrap">
										<dl class="clearfix" data-id="<?php echo $vo2['serviceCategoryId']; ?>">
											<dt><a href="/category?cateId1=<?php echo $vo2['serviceCategoryId']; ?>&cateId=<?php echo $vo['serviceCategoryId']; ?>"><?php echo $vo2['categoryName']; ?></a></dt>
											<?php foreach($vo2['san'] as $vo3): ?>
											<dd><a href="/goodsDetail?serviceId=<?php echo $vo3['serviceId']; ?>" <?php if($vo3['isHot']==1): ?> style="color: red" <?php endif; ?>><?php echo $vo3['serviceName']; ?></a></dd>
											<?php endforeach; ?>
										</dl>
									</div>
									<?php endforeach; ?>
								</div>
							</div>

							<?php endif; ?>
						</li>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</li>
				<li class="hotPosition"><a target="_blank" href="/registeredAddressIndex.html">注册地址</a><span><img src="__STATIC__/images/hot.gif"></span></li>
				<li><a target="_blank" href="/makerSpaceIndex.html">众创空间</a></li>
				<li class="hotPosition"><a target="_blank" href="/guquanIndex.html">买卖执照</a><span><img src="__STATIC__/images/hot.gif"></span></li>
				<li class="hotPosition"><a target="_blank" href="/rental.html">写字楼出租</a><span><img src="__STATIC__/images/hot.gif"></span></li>
				<li><a target="_blank" href="/index<?php echo $code['understandCode']; ?>.html">关于我们</a></li>
			</ul>
			<style>
				#header_nav .hotPosition{
					position: relative;
				}
				#header_nav li span{
                  position: absolute;
					top: -6px;
					right: 15px;;
				}
			</style>
			<div class="call"><div class="icon"></div>186-1139-8788</div>
		</div>
		<!--导航和电话部分结束-->
</div>
<script>
	$(function(){
        $('#goout').on('click',function(){
            layer.confirm('您确定要退出登录？', {title: '退出提醒'}, function (index) {
                location.href = "logout";
            });
        });
        var url = window.location.href.substring(window.location.host.length+8).substr(0, 5);
        if(url == "regis"){
            $("#header_nav").children().eq(1).children().addClass("current");
            $("#header_nav").children().eq(2).children().removeClass("current");
            $("#header_nav").children().eq(3).children().removeClass("current");
            $("#header_nav").children().eq(4).children().removeClass("current");
        }else if(url == "maker"){
            $("#header_nav").children().eq(2).children().addClass("current");
            $("#header_nav").children().eq(1).children().removeClass("current");
            $("#header_nav").children().eq(3).children().removeClass("current");
            $("#header_nav").children().eq(4).children().removeClass("current");
        }else if(url == "guqua"){
            $("#header_nav").children().eq(3).children().addClass("current");
            $("#header_nav").children().eq(2).children().removeClass("current");
            $("#header_nav").children().eq(1).children().removeClass("current");
            $("#header_nav").children().eq(4).children().removeClass("current");
        }
		else if(url == "renta"){
			$("#header_nav").children().eq(4).children().addClass("current");
			$("#header_nav").children().eq(3).children().removeClass("current");
			$("#header_nav").children().eq(2).children().removeClass("current");
			$("#header_nav").children().eq(1).children().removeClass("current");
		}
		$("#header_nav").children().eq(0).children().addClass("current");






	})
	window.onload = function(){
		/*服务分类*/
		var header_nav = $("#header_nav");
		var classify_nav = header_nav.find(".classify-nav");
		var lis = classify_nav.children("li");
		lis.each(function(){
			var dls = $(this).find("dl");
			var dls_length = dls.length;
			var cateId = $(this).children("p").attr("data-id");
			if(dls_length >= 4){
				dls.each(function(){
					var cateId1 = $(this).attr("data-id");
					if($(this).height() > 93){
						$(this).parent().addClass("beyond2");
						$(this).parent().append("<a class='more' href='category?cateId1="+cateId1+"&cateId="+cateId+"'>更多>></a>");
					}
				})
			}else if(dls_length == 3){
				dls.each(function(){
					if($(this).height() > 133){
						$(this).parent().addClass("beyond3");
						$(this).parent().append("<a class='more' href='category?cateId1="+cateId1+"&cateId="+cateId+"'>更多>></a>");
					}
				})
			}

		})
	}
</script>
<div id="pop_up" style="width: 300px;height: 220px; margin-left: -150px; margin-top: -110px;background: #fff;">
    <p style="color:#22A0DB;font-size:16px;text-align: center;line-height:36px;padding-top: 38px;">请服务完成后，再确认订单完成<br/>否则您可能钱货两空!
    </p>
    <div class="btn-public" id="finish" data-serviceSoid="">完成</div>
    <div class="close">×</div>
</div>
<script>
    $(function () {
        var pop_up = $("#pop_up");
        var close = pop_up.children(".close");
        close.on("click", function () {
            pop_up.hide();
        })
        $(".confirmFinish").on('click', function () {
            $("#pop_up").show();
            var dataSoid = $(this).attr('data-Soid');
            $("#finish").attr('data-serviceSoid', dataSoid)
        });
    });


</script>
<div id="main" style="padding-bottom: 40px;">
    <div class=" clearfix w1200">
        <!--左侧tab栏开始-->
        <div class="left-tab">
            <ul>
                <li>
                    <dl>
                        <dt>订单管理</dt>
                        <dd><a href="/lists.html" class="current">我的订单</a></dd>
                        <dd><a href="/contact.html">联系客服</a></dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>用户中心</dt>
                        <dd><a href="/commendcode.html">推荐码</a></dd>
                        <dd><a href="/loginpwd.html">修改登录密码</a></dd>
                        <dd><a href="/address.html">收货地址</a></dd>
                        <dd><a href="/info.html">个人信息</a></dd>
                        <!--若已有支付密码，只显示修改支付密码，若没有支付密码，显示设置支付密码-->
                        <?php if($welcome['hasTradePwd'] == 'no'): ?>
                        <dd><a href="/setpaypwd.html">设置支付密码</a></dd>
                        <?php endif; if($welcome['hasTradePwd'] == 'yes'): ?>
                        <dd><a href="/paypwd.html">修改支付密码</a></dd>
                        <?php endif; ?>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>资金管理</dt>
                        <dd><a href="../coupons/coupons.html">优惠券</a></dd>
                        <dd><a href="../capital/capital.html">余额明细</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
        <!--左侧tab栏结束-->
        <div class="content-right">
            <!--欢迎语、余额、优惠券-->
            <div class="welcomeword">
	<img src="<?php echo $welcome['headImgFilePath']; ?>" onerror="javascript:this.src='__STATIC__/images/welcome.png';"/>
	<div class="mess">
		<!--<div class="speech">您好，<?php echo $welcome['phonefont']; ?>*****<?php echo $welcome['phoneback']; ?></div>
		<p>余额：<span id="balance"><?php echo !empty($welcome['account'])?$welcome['account']:'0'; ?></span>元</p>
		<p>优惠券：3张</p>-->
		<div class="speech fl">您好，<?php echo $welcome['phonefont']; ?>*****<?php echo $welcome['phoneback']; ?></div>
		<p>余额：<span id="balance"><?php echo !empty($welcome['account'])?$welcome['account']:'0'; ?></span>元</p>
		<p>优惠券：<?php echo $welcome['coupon']; ?>张</p>
		<a href="/personal.html" class="become">成为服务商</a>
		<!--<div class="fr">
			<p>余额：<span id="balance"><?php echo !empty($welcome['account'])?$welcome['account']:'0'; ?></span>元</p>
			<p>优惠券：<?php echo $welcome['coupon']; ?>张</p>
		</div>-->
	</div>
</div>
            <div class="order">
                <!--外层order高度到时根据需要调整-->
                <div class="header">
                    <div class="title">我的订单</div>
                </div>
                <div id="order_tab" style="border-right: 1px solid #eee;">
                    <ul class="order_tab_menu orderList ">
                        <li class="selected addStyle">全部订单</li>
                        <li>待付款</li>
                        <li>待确认</li>
                        <li>已取消</li>
                        <li>已完成</li>
                    </ul>
                    <div class="order_tab_box">
                        <!--全部订单-->
                        <div class="selected">
                            <!--没有订单，nitAvailble显示，-->
                            <!--<div class="nitAvailble" style="margin-left: 30%;margin-top: 10%">
                                <img src="__STATIC__/images/creative10.png">
                            </div>-->
                            <!--有订单，显示has，-->
                            <div class="has">
                                <?php if(empty($list)){?>
                                <div class="none-data"
                                     style="border-bottom:none;text-align:center; font-size: 0; width: 100%;background: none; margin-top: 50px;">
                                    <img src="__STATIC__/images/kong1.png"
                                         style="display: inline-block; margin: 0 auto;float: none; width: 122px; height:162px;"
                                         alt="">
                                    <span style="margin-left: 20px;display: inline-block; line-height: 166px; font-size: 20px;vertical-align: top; color: #333;">暂无数据......</span>
                                </div>
                                <?php }else{?>
                                <ul class="inStock">
                                    <li>订单详情</li>
                                    <li>收货人</li>
                                    <li style="width: 150px">金额</li>
                                    <li style="width: 180px ;margin-left: 0px">状态</li>
                                    <li>操作</li>
                                </ul>
                                <!--订单循环列表，订单状态不同样式不同-->
                                <div>
                                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['paymentStatus'] == 0): ?>
                                    <!--未支付订单-->
                                    <?php if($v['orderStatus']==9 || $v['orderStatus']==10): ?>
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                     <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>
                                                    <?php if($v['orderStatus']==9): ?>未付款，已取消<?php endif; if($v['orderStatus']==10): ?>未付款，退单<?php endif; ?>
                                                </p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <p   style="margin-top: 20px">
                                                    <?php if($v['projectType'] ==8): ?>
                                                    <a href="goodsDetail?serviceId=<?php echo $v['serviceId']; ?>" target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==1): ?>
                                                    <a href="/registeredAddressDetail?projectId=<?php echo $v['serviceId']; ?>.html" target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==2): ?>
                                                    <a href="/makerSpaceDetail?projectId=<?php echo $v['serviceId']; ?>.html" target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==3): ?>
                                                    <a href="/guquanDetail?projectId=<?php echo $v['serviceId']; ?>.html" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; ?>
                                                </p>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php else: ?>
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                 <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>待付款</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">
                                                <?php if($v['serviceType']!=4): ?>
                                                <a class="mast" style="margin-top:10px;margin-bottom: 2px;"
                                                   href="/payment1?serviceOrderId=<?php echo $v['serviceOrderId']; ?>" target="_blank">立即付款</a>
                                                <a class="cancel-btn" style="color:goldenrod;margin-top: 0px;">取消订单</a>
                                                <input type="hidden" name="addDateTime" value="<?php echo $v['addDateTime']; ?>"
                                                       data-soid="<?php echo $v['serviceOrderId']; ?>" target="_blank">
                                                <?php endif; if($v['serviceType']==4): ?>
                                                <a class="cancel-btn" style="color:goldenrod;margin-top: 20px;">取消订单</a>
                                                <input type="hidden" name="addDateTime" value="<?php echo $v['addDateTime']; ?>"
                                                       data-soid="<?php echo $v['serviceOrderId']; ?>" target="_blank">
                                                <?php endif; ?>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; elseif($v['paymentStatus'] == 1): if($v['orderStatus']==1||$v['orderStatus']==0|| $v['orderStatus']==2 || $v['orderStatus']==3 ||
                                    $v['orderStatus']==4 || $v['orderStatus']==5): ?>
                                    <!--已支付，等待卖家服务中样式-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                    <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>已付款，等待服务中</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>">订单详情</a>
                                                </p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">
                                                <a style="color:goldenrod;margin-top: 20px;" onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php elseif($v['orderStatus'] == 11): ?>
                                    <!--已支付，卖家确认服务完成样式-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                      <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>服务完成</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">
                                                <input type="hidden" name="completeDateTime"
                                                       value="<?php echo $v['completeDateTime']; ?>"
                                                       data-finishSoid="<?php echo $v['serviceOrderId']; ?>">
                                                <a class="mast confirmFinish" style="margin-top:20px;"
                                                   data-Soid="<?php echo $v['serviceOrderId']; ?>">订单完成</a>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php elseif($v['orderStatus'] == 6): ?>
                                    <!--已支付，卖家服务中样式-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                    <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>已付款，服务中</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>">订单详情</a>
                                                </p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">
                                                <a style="color:goldenrod;margin-top: 0px;"
                                                   onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php elseif($v['orderStatus'] == 8): ?>
                                    <!--已支付，买家已评价-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                      <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>订单完成，已评价</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>">订单详情</a>
                                                </p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">
                                                <?php if($v['projectType'] ==8): ?>
                                                <a class="mast" style="margin-top:10px;margin-bottom: 2px;" href="goodsDetail?serviceId=<?php echo $v['serviceId']; ?>">再次购买</a>
                                                <p class="astyle2"><a style="color:goldenrod;margin-top: 0px;" onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                                </p>
                                                <?php endif; if($v['projectType'] ==1 || $v['projectType'] ==2 || $v['projectType']
                                                ==3 || $v['projectType'] ==7): ?>
                                                <p class="astyle2"><a style="color:goldenrod;margin-top: 20px;"
                                                                      onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                                </p>
                                                <?php endif; ?>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php elseif($v['orderStatus'] == 7): ?>
                                    <!--已支付，买家确认订单完成样式-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                     <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>订单完成</p>

                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <a class="mast" style="margin-top:10px;margin-bottom: 2px;"
                                                   href="/comment?serviceOrderId=<?php echo $v['serviceOrderId']; ?>">评价</a>
                                                <a style="color:goldenrod;margin-top: 0px;"
                                                   onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php elseif($v['orderStatus'] == 9 ||$v['orderStatus'] == 10): ?>
                                    <!--已取消,退单订单-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                   <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>
                                                    <?php if($v['orderStatus']==9): ?>已付款，已取消<?php endif; if($v['orderStatus']==10): ?>已付款，退单<?php endif; ?>
                                                </p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <p   style="margin-top: 20px">
                                                    <?php if($v['projectType'] ==8): ?>
                                                    <a href="goodsDetail?serviceId=<?php echo $v['serviceId']; ?>"
                                                       target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==1): ?>
                                                    <a href="/registeredAddressDetail?projectId=<?php echo $v['serviceId']; ?>.html"
                                                       target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==2): ?>
                                                    <a href="/makerSpaceDetail?projectId=<?php echo $v['serviceId']; ?>.html"
                                                       target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==3): ?>
                                                    <a href="/guquanDetail?projectId=<?php echo $v['serviceId']; ?>.html" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; ?>
                                                </p>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
                                </div>
                                <?php }?>
                            </div>
                        </div>
                        <!--待付款订单列表-->
                        <div class="hided">
                            <!--没有订单，nitAvailble显示，-->
                            <!--<div class="nitAvailble" style="margin-left: 30%;margin-top: 10%">
                                <img src="__STATIC__/images/creative10.png">
                            </div>-->
                            <!--有订单，显示has，-->
                            <div class="has">
                                <?php if(empty($list)){?>
                                <div class="none-data"
                                     style="border-bottom:none;text-align:center; font-size: 0; width: 100%;background: none; margin-top: 50px;">
                                    <img src="__STATIC__/images/kong1.png"
                                         style="display: inline-block; margin: 0 auto;float: none; width: 122px; height:162px;"
                                         alt="">
                                    <span style="margin-left: 20px;display: inline-block; line-height: 166px; font-size: 20px;vertical-align: top; color: #333;">暂无数据......</span>
                                </div>
                                <?php }else{?>
                                <ul class="inStock">
                                    <li>订单详情</li>
                                    <li>收货人</li>
                                    <li style="width: 150px">金额</li>
                                    <li style="width: 180px ;margin-left: 0px">状态</li>
                                    <li>操作</li>
                                </ul>
                                <!--订单循环列表，-->
                                <div>
                                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                    <!--未支付订单-->
                                    <?php if($v['paymentStatus'] == 0 && $v['serviceType'] !=4 && $v['orderStatus'] !=9): ?>
                                    <!--未支付，等待支付-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <dt><img src="<?php echo $v['thumbFile']; ?>"></dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                  <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>待付款</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">

                                                <a class="mast" style="margin-top:10px;margin-bottom: 2px;"
                                                   href="/payment1?serviceOrderId=<?php echo $v['serviceOrderId']; ?>" target="_blank">立即付款</a>
                                                <a class="cancel-btn" style="color:goldenrod;margin-top: 0px;">取消订单</a>
                                                <input type="hidden" name="addDateTime" value="<?php echo $v['addDateTime']; ?>"
                                                       data-soid="<?php echo $v['serviceOrderId']; ?>" target="_blank">
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                </div>
                                <?php }?>
                            </div>
                        </div>
                        <!--待确认订单列表-->
                        <div class="hided">
                            <!--没有订单，nitAvailble显示，-->
                            <!--<div class="nitAvailble" style="margin-left: 30%;margin-top: 10%">
                                <img src="__STATIC__/images/creative10.png">
                            </div>-->
                            <!--有订单，显示has，-->
                            <div class="has">
                                <?php if(empty($list)){?>
                                <div class="none-data"
                                     style="border-bottom:none;text-align:center; font-size: 0; width: 100%;background: none; margin-top: 50px;">
                                    <img src="__STATIC__/images/kong1.png"
                                         style="display: inline-block; margin: 0 auto;float: none; width: 122px; height:162px;"
                                         alt="">
                                    <span style="margin-left: 20px;display: inline-block; line-height: 166px; font-size: 20px;vertical-align: top; color: #333;">暂无数据......</span>
                                </div>
                                <?php }else{?>
                                <ul class="inStock">
                                    <li>订单详情</li>
                                    <li>收货人</li>
                                    <li style="width: 150px">金额</li>
                                    <li style="width: 180px ;margin-left: 0px">状态</li>
                                    <li>操作</li>
                                </ul>
                                <!--订单循环列表，-->
                                <div>
                                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['paymentStatus'] == 1 && $v['orderStatus']==11): ?>
                                    <!--已支付，等待确认完成-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                     <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>服务完成</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">
                                                <input type="hidden" name="completeDateTime"
                                                       value="<?php echo $v['completeDateTime']; ?>"
                                                       data-finishSoid="<?php echo $v['serviceOrderId']; ?>">
                                                <a class="mast confirmFinish" style="margin-top:20px;"
                                                   data-Soid="<?php echo $v['serviceOrderId']; ?>">订单完成</a>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                </div>
                                <?php }?>
                            </div>
                        </div>
                        <!--已经取消的订单列表-->
                        <div class="hided">
                            <!--没有订单，nitAvailble显示，-->
                            <div class="has">
                                <?php if(empty($list)){?>
                                <div class="none-data"
                                     style="border-bottom:none;text-align:center; font-size: 0; width: 100%;background: none; margin-top: 50px;">
                                    <img src="__STATIC__/images/kong1.png"
                                         style="display: inline-block; margin: 0 auto;float: none; width: 122px; height:162px;"
                                         alt="">
                                    <span style="margin-left: 20px;display: inline-block; line-height: 166px; font-size: 20px;vertical-align: top; color: #333;">暂无数据......</span>
                                </div>
                                <?php }else{?>
                                <ul class="inStock">
                                    <li>订单详情</li>
                                    <li>收货人</li>
                                    <li style="width: 150px">金额</li>
                                    <li style="width: 180px ;margin-left: 0px">状态</li>
                                    <li>操作</li>
                                </ul>
                                <!--订单循环列表，-->
                                <div>
                                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['paymentStatus'] == 0): ?>
                                    <!--未支付订单-->
                                    <?php if($v['orderStatus']==9 || $v['orderStatus']==10): ?>
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                      <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>
                                                    <?php if($v['orderStatus']==9): ?>未付款，已取消<?php endif; if($v['orderStatus']==10): ?>未付款，退单<?php endif; ?>
                                                </p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <p   style="margin-top: 20px">
                                                    <?php if($v['projectType'] ==8): ?>
                                                    <a href="goodsDetail?serviceId=<?php echo $v['serviceId']; ?>"
                                                       target="_blank">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==1): ?>
                                                    <a href="/registeredAddressDetail?projectId=<?php echo $v['serviceId']; ?>.html"
                                                       target="_blank">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==2): ?>
                                                    <a href="/makerSpaceDetail?projectId=<?php echo $v['serviceId']; ?>.html"
                                                       target="_blank">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==3): ?>
                                                    <a href="/guquanDetail?projectId=<?php echo $v['serviceId']; ?>.html">重新购买</a>
                                                    <?php endif; ?>
                                                </p>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; endif; if($v['paymentStatus'] == 1): if($v['orderStatus'] == 9 ||$v['orderStatus'] == 10): ?>
                                    <!--已取消,退单订单-->
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                    <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>
                                                    <?php if($v['orderStatus']==9): ?>已付款，已取消<?php endif; if($v['orderStatus']==10): ?>已付款，退单<?php endif; ?>
                                                </p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                            </li>
                                            <li>
                                                <p  style="margin-top: 20px">
                                                    <?php if($v['projectType'] ==8): ?>
                                                    <a href="goodsDetail?serviceId=<?php echo $v['serviceId']; ?>"
                                                       target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==1): ?>
                                                    <a href="/registeredAddressDetail?projectId=<?php echo $v['serviceId']; ?>.html"
                                                       target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==2): ?>
                                                    <a href="/makerSpaceDetail?projectId=<?php echo $v['serviceId']; ?>.html"
                                                       target="_blank" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; if($v['projectType'] ==3): ?>
                                                    <a href="/guquanDetail?projectId=<?php echo $v['serviceId']; ?>.html" class="mast" style="margin-top:10px;margin-bottom: 2px;">重新购买</a>
                                                    <?php endif; ?>
                                                </p>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
                                </div>
                                <?php }?>
                            </div>
                        </div>
                        <!--已完成订单列表-->
                        <div class="hided">
                            <!--没有订单，nitAvailble显示，-->
                            <!--<div class="nitAvailble" style="margin-left: 30%;margin-top: 10%">
                                <img src="__STATIC__/images/creative10.png">
                            </div>-->
                            <!--有订单，显示has，-->
                            <div class="has">
                                <?php if(empty($list)){?>
                                <div class="none-data"
                                     style="border-bottom:none;text-align:center; font-size: 0; width: 100%;background: none; margin-top: 50px;">
                                    <img src="__STATIC__/images/kong1.png"
                                         style="display: inline-block; margin: 0 auto;float: none; width: 122px; height:162px;"
                                         alt="">
                                    <span style="margin-left: 20px;display: inline-block; line-height: 166px; font-size: 20px;vertical-align: top; color: #333;">暂无数据......</span>
                                </div>
                                <?php }else{?>
                                <ul class="inStock">
                                    <li>订单详情</li>
                                    <li>收货人</li>
                                    <li style="width: 150px">金额</li>
                                    <li style="width: 180px ;margin-left: 0px">状态</li>
                                    <li>操作</li>
                                </ul>
                                <!--订单循环列表，-->
                                <div>
                                    <!--已支付，服务完成等待评价-->
                                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['paymentStatus'] == 1): if($v['orderStatus']==7): ?>
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                    <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>订单完成</p>
                                                <?php if($v['serviceType']==4): ?>
                                                <p class="astyle2"><a
                                                        href="/guquanDetail_full?projectId=<?php echo $v['serviceId']; ?>.html"
                                                        target="_blank">订单详情</a></p>
                                                <?php else: ?>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>"
                                                        target="_blank">订单详情</a></p>
                                                <?php endif; ?>
                                            </li>
                                            <li>
                                                <a class="mast" style="margin-top:10px;margin-bottom: 2px;"
                                                   href="/comment?serviceOrderId=<?php echo $v['serviceOrderId']; ?>">评价</a>
                                                <a style="color:goldenrod;margin-top: 0px;"
                                                   onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; if($v['orderStatus']==8): ?>
                                    <div class="goods doing">
                                        <div>
                                            <span class="sp"><?php echo date("Y-m-d",strtotime($v['addDateTime']));?></span>&nbsp;<span><?php echo date("H:i:s",strtotime($v['addDateTime']));?></span>&nbsp;&nbsp;<span>订单号：</span><a><?php echo $v['serviceOrderId']; ?></a>
                                        </div>
                                        <ul class="detail">
                                            <li class="first">
                                                <dl>
                                                    <?php if($v['serviceType']==4 || $v['projectType'] ==3): ?>
                                                    <dt><img src="__STATIC__/images/xinxidan.png"></dt>
                                                    <dd>查看信息订单</dd>
                                                    <?php else: ?>
                                                    <dt>
                                                        <?php if($v['projectType']==3): ?>
                                                        <img src="__STATIC__/images/xinxidan.png">
                                                        <?php else: ?>
                                                        <img src="<?php echo $v['thumbFile']; ?>">
                                                        <?php endif; ?>
                                                    </dt>
                                                    <dd><?php echo substr($v['serviceName'],0,90);?></dd>
                                                    <?php endif; ?>
                                                </dl>
                                            </li>
                                            <li><span><?php echo $v['linkMan']; ?></span></li>
                                            <li style="width: 168px">
                                                <p style="color:dimgray;">总金额：￥ <span><?php echo $v['orderAmount']; ?></span></p>
                                                <p style="font-size:14px;">应付金额：￥ <span>
                                                     <?php echo $v['payAmount']; ?>
                                                </span></p>
                                            </li>
                                            <li class="newlistyle">
                                                <p>订单完成，已评价</p>
                                                <p class="astyle2"><a
                                                        href="orderDetail?serviceOrderId=<?php echo $v['serviceOrderId']; ?>">订单详情</a>
                                                </p>
                                            </li>
                                            <li>
                                                <input type="hidden" name="soId" value="<?php echo $v['serviceOrderId']; ?>">
                                                <?php if($v['projectType'] ==8): ?>
                                                <a class="mast" style="margin-top:10px;margin-bottom: 2px;" href="goodsDetail?serviceId=<?php echo $v['serviceId']; ?>">再次购买</a>
                                                <p class="astyle2"><a style="color:goldenrod;margin-top: 0px;" onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                                </p>
                                                <?php endif; if($v['projectType'] ==1 || $v['projectType'] ==2 || $v['projectType']
                                                ==3 || $v['projectType'] ==7): ?>
                                                <p class="astyle2"><a
                                                        style="color:goldenrod;margin-top: 0px;margin-top: 20px"
                                                        onclick="layer_layer2(title,'alert4.html','300px','250px')">申请售后</a>
                                                </p>
                                                <?php endif; ?>
                                            </li>
                                        </ul>
                                    </div>
                                    <?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
                                </div>
                                <?php }?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<!--取消订单弹框开始-->
<div id="pop_up1">
    <p>您确定取消订单吗？<br/>取消订单后，不能恢复。</p>
    <div class="btn-public">取消订单</div>
    <div class="close">×</div>
</div>
<!--取消订单弹框结束-->
<!--底部开始-->
<div id="footer_wrap">
	<!--保障部分-->
	<div class="safeguard">
		<ul class="w1200 clearfix">
			<li>
				<div class="icon"></div>
				<p>信息保密</p >
				<span>个人信息安全有保障</span>
			</li>
			<li>
				<div class="icon"></div>
				<p>价格透明</p >
				<span>明码标价不欺瞒用户</span>
			</li>
			<li>
				<div class="icon"></div>
				<p>资质认证</p >
				<span>服务商实名审核认证</span>
			</li>
			<li>
				<div class="icon"></div>
				<p>售后无忧</p >
				<span>售后保障全程无忧</span>
			</li>
		</ul>
	</div>

	<!--底部导航-->
	<div class="footer">
		<div class="ft-nav-call w1200 clearfix">
			<div class="ft-nav">
				<dl>
					<dt>关于我们</dt>
					<dd><a href="/index<?php echo $code['understandCode']; ?>.html">了解我们</a></dd>
					<dd><a href="/index<?php echo $code['relationCode']; ?>.html">联系我们</a></dd>
					<dd><a href="/index<?php echo $code['problemCode']; ?>.html">常见问题</a></dd>
				</dl>
				<dl>
					<dt>订单服务</dt>
					<dd><a href="/index<?php echo $code['refundCode']; ?>.html">退款说明</a></dd>
					<dd><a href="/index<?php echo $code['buyCode']; ?>.html">购买流程</a></dd>
				</dl>
				<dl>
					<dt>服务商入口</dt>
					<dd><a href="#">服务商登录</a></dd>
					<dd><a href="/personal.html">服务商服务</a></dd>
				</dl>
			</div>
			<div class="ft-call">
				<div class="icon"></div>
				<div class="mess">
					<p>客服电话</p >
					<p>186-1139-8788</p >
					<p>服务时间</p >
					<p>周一至周五9:00-18:00</p >
				</div>
			</div>
		</div>
		<div class="copyright w1200">Copyright 2014-2044     卓富资本管理(北京)有限公司  版权所有      京ICP备15059398号-4</div>
	</div>
</div>
</body>
<script>
    $(document).ready(function () {
        //加载订单页面时查看卖家完成的订单状态 ，买家七天不处理 ，自动结算
        //加载订单页面时查看未支付的订单状态  超过24小时未支付自动取消
        var time = $('input[name="addDateTime"]');

//        $.each(time,function(index){
//            var id = $(this).attr('data-soid');
//            var datatime = Date.parse(new Date($(this).val())) + 24*60*60*1000;
//
//            var timestamp = Date.parse(new Date(getCurrentTime()));
//            if(datatime < timestamp){
//                var soId = $('input[name="soId"]').val();
//                $.post("cancellation",{"soId":id},function(data){
//                    if(data.code =='ok'){
//
//                        //连接不对
//                        window.location.href="lists.html"
////                            layer_layer(data.msg,"","");
//                    }else {
//                        layer.msg(data.msg, {
//                            icon: 2,
//                            time: 5000 //5秒关闭（如果不配置，默认是3秒）
//                        });
//                    }
//
//                })
//            }
//        });


        var completeDateTime = $('input[name="completeDateTime"]');

//        $.each(completeDateTime,function(index){
//            var datatime = Date.parse(new Date($(this).val())) + 7*24*60*60*1000;
//            var timestamp = Date.parse(new Date(getCurrentTime()));
//            var id = $(this).attr('data-finishSoid');
//            if(datatime < timestamp){
//                $.post("accomplish",{"soId":id},function(data){
//                    if(data.code =='ok'){
//                        //连接不对
//                        window.location.href="lists.html"
////                            layer_layer(data.msg,"","");
//                    }else {
//                        layer.msg(data.msg, {
//                            icon: 2,
//                            time: 5000 //5秒关闭（如果不配置，默认是3秒）
//                        });
//                    }
//
//                })
//            }
//        })

        function getCurrentTime() {
            var date = new Date();
            var strYear = date.getFullYear();
            var strDay = date.getDate();
            var strMonth = date.getMonth() + 1;
            var strHour = date.getHours(); //时
            var strMinute = date.getMinutes(); //分
            var strSecond = date.getSeconds(); //秒
            if (strMonth < 10) {
                strMonth = "0" + strMonth;
            }
            if (strDay < 10) {
                strDay = "0" + strDay;
            }
            if (strHour < 10) {
                strHour = "0" + strHour;
            }
            if (strMinute < 10) {
                strMinute = "0" + strMinute;
            }
            if (strSecond < 10) {
                strSecond = "0" + strSecond;
            }
            datastr = strYear + "-" + strMonth + "-" + strDay + " " + strHour + ":" + strMinute + ":" + strSecond;
            return datastr;
        }

        var $tab_li = $('#order_tab ul li');
        $tab_li.click(function () {
            $(this).addClass('selected').siblings().removeClass('selected');
            var index = $tab_li.index(this);
            $('div.order_tab_box > div').eq(index).show().siblings().hide();
        });
        $.each($(".orderList").children(), function () {
            $(this).on("click", function () {
                $(this).addClass('addStyle').siblings().removeClass('addStyle');
            })
        })

        /*取消订单开始*/
        var cancel_btn = $(".cancel-btn");
        var pop_up = $("#pop_up1");
        $.each(cancel_btn, function () {
            $(this).on("click", function () {
                var thisself = $(this);
                var soId = $(this).parent().children('input[name="soId"]').val();
                pop_up.show();
                pop_up.on("click", ".btn-public", function () {
                    pop_up.hide();
                    thisself.siblings(".mast").css({"margin-top": "22px"});
                    $.post("cancellation", {"soId": soId}, function (data) {
                        if (data.code == 'ok') {
                            //连接不对
                            window.location.href = "/lists.html"
//                            layer_layer(data.msg,"","");
                        } else {
                            layer.msg(data.msg, {
                                icon: 2,
                                time: 5000 //5秒关闭（如果不配置，默认是3秒）
                            });
                        }

                    })
//                    thisself.parent().siblings(".newlistyle").children().eq(0).html("已取消订单");
//                    thisself.remove();
                });
            })
        });

        pop_up.on("click", ".close", function () {
            pop_up.hide();
        });

        /*取消订单结束*/

        // 订单完成开始
        var $tab_li1 = $('#finish');
        $tab_li1.click(function () {
            var soId = $(this).attr('data-serviceSoid');
            $.post("accomplish", {"soId": soId}, function (data) {
                if (data.code == 'ok') {
                    //连接不对
//                    var cancleUrl = "<?php echo url('index/Order/list'); ?>";
//                    var url = "<?php echo url('index/Order/alert5'); ?>";
                    //layer_layer("",'<?php echo \think\Url::build("index/User/successregister",["memberId"=>'+memberId+']); ?>',memberId);
                    window.location.href = "/lists.html"
                } else {
                    layer.msg(data.msg, {
                        icon: 2,
                        time: 5000 //5秒关闭（如果不配置，默认是3秒）
                    });
                }

            })
        });
        //订单完成结束
    });
</script>


</html>